package model.beans;

import java.util.HashMap;
import java.util.Map;

public class BibliographyBean {
	private int id;
	private String subject;
	private String title;
	private String author;
	private String editorial;
	private int year;
	private String isbn;
	private String issn;
	private String type;
	private String academy;
	private Map map_id = new HashMap();
	
	public BibliographyBean(){
		super();
	}
	
	public BibliographyBean(int id, String subject, String title, String author, String editorial, int year, String isbn, String issn, String type, String academy) {
		super();
		this.id = id;
		this.subject = subject;
		this.title = title;
		this.author = author;
		this.editorial = editorial;
		this.year = year;
		this.isbn = isbn;
		this.issn = issn;
		this.type = type;
		this.academy = academy;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
		map_id.put("id", new Integer(this.id));
	}
	
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getEditorial() {
		return editorial;
	}
	public void setEditorial(String editorial) {
		this.editorial = editorial;
	}
	
	public String getIsbn() {
		return isbn;
	}
	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}

	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
		map_id.put("subject_id", this.subject);
	}

	public String getAcademy() {
		return academy;
	}
	public void setAcademy(String academy) {
		this.academy = academy;
		map_id.put("academy_id", this.academy);
	}

	public Map getMap_id() {
		return map_id;
	}

	public void setMap_id(Map map_id) {
		this.map_id = map_id;
	}

	public String getIssn() {
		return issn;
	}

	public void setIssn(String issn) {
		this.issn = issn;
	}
}
